﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml.Serialization;

namespace Intorise.Framework
{
    public class AppConfig
    {
        public string SerialNumber="";

        /// <summary>
        /// 读取配置文件
        /// </summary>
        public static AppConfig LoadSerialNumber()
        {
            using (FileStream fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + "\\app.xml", FileMode.Open))
            {
                XmlSerializer serializer = new XmlSerializer(typeof(AppConfig));
                return (AppConfig)serializer.Deserialize(fs);
            }
        }
    }
}
